package com.offcn.service.impl;

import com.offcn.dao.UserDao;
import com.offcn.pojo.User;
import com.offcn.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    //持久层注入
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> queryList() {
        return userDao.selectList();
    }
}
